
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Renter's Report</title>
        <link rel="stylesheet" type="text/css" href="css/style.css" />
        <link rel="stylesheet" type="text/css" href="css/menu.css" />
        <link rel="stylesheet" type="text/css" href="themes/table/blue/style.css" />
        <link rel="stylesheet" type="text/css" href="css/idealforms/idealforms.css"/>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/menu.js"></script>
        <script type="text/javascript" src="js/jquery.idealforms.js"></script>
        <script type="text/javascript" src="js/idealform.js"></script>

        <script type="text/javascript">
            function redirectMe (sel) {
                var url = sel[sel.selectedIndex].value;
                window.location = url;
            }

        </script>
    </head>
    <body>
        <div id="main_container">
            <jsp:include page="loginheader.jsp"/> <!-- end header -->
            <div class="main_content">
                <jsp:include page="${sessionScope.menuChoice}" /> <!-- include home menu -->
                <div class="center_content">
                    <div class="left_content">
                        <div class="sidebar_box">
                            <div class="sidebar_box_top"></div>
                            <div class="sidebar_box_content">
                                <h3>Renter Id</h3>
                                <p>

                                    <div id="personform">
                                        <form action="RenterReport" method="POST">
                                            <input type="text" placeholder="Input renter id" name="renterID"/> <br/>
                                            <label style="color: red">${message}</label><br/>
                                            <input type="submit" value="Submit" onClick="redirectMe(this)"></input>
                                                <br/>
                                                    <input type="button" value="Print Report" onClick="window.print()"></input>
                                                    </form>
                                                    </div>
                                                    </p>
                                                    </div>
                                                    <div class="sidebar_box_bottom"></div>
                                                    </div>
                                                    </div> <!-- end left content -->
                                                    <div class="right_content">
                                                        <div id="personform">
                                                            <center><strong>Renter Report</strong></center>
                                                            <table class="tablesorter" id="myTable2" border="0"border="0">
                                                                <tr> <th>Reservation Id</th> <th>Rental Type</th> <th>Aircraft Type</th> <th>Tail#</th><th>Start Date</th><th>End Date</th><th>Start Time</th><th>End Time</th><th>Total Time</th><th>Pilot Name</th>
                                                                </tr>
                                                                <c:forEach var="renter" items="${renters}">
                                                                    <tr><td>${renter[0]}</td>
                                                                        <td>${renter[1]}</td>
                                                                        <td>${renter[2]}</td>
                                                                        <td>${renter[3]}</td>
                                                                        <td>${renter[4]}</td>
                                                                        <td>${renter[5]}</td>
                                                                        <td>${renter[6]}</td>
                                                                        <td>${renter[7]}</td>
                                                                        <td>${renter[8]}</td>
                                                                        <td>${renter[9]}</td>



                                                                    </tr>
                                                                </c:forEach>
                                                            </table>
                                                        </div>








                                                        <br></br><br></br>
                                                    </div><!-- end of right content-->
                                                    </div>   <!--end of center content -->
                                                    <div class="clear"></div>
                                                    </div> <!--end of main content-->
                                                    <div class="footer">
                                                        <div class="left_footer"><a href="http://apycom.com/"></a>Red Team &copy;</div>
                                                        <div class="right_footer"></div>
                                                    </div> <!-- end footer -->
                                                    </div> <!-- end main container -->
                                                    </body>
                                                    </html>